﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PartyController.Models
{
    public class Guest
    {
        public string name{ get; set; }    
        public Guest(string _name)
        {
            name = _name;
            status = StatusType.maybe;
        }

        public enum StatusType
        {
            maybe,
            yes,
            no
        }
        public StatusType status { get; set; }

        public override bool Equals(object obj)
        {
            if (obj as Guest == null || name == null) return false;
            return (obj as Guest).name == name;
        }
    }
}